using Verse;

namespace RimWorld;

public class ThoughtWorker_HardWorkerVsLazy : ThoughtWorker
{
	protected override ThoughtState CurrentSocialStateInternal(Pawn p, Pawn other)
	{
		if (!p.RaceProps.Humanlike)
		{
			return false;
		}
		if (p.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) <= 0)
		{
			return false;
		}
		if (!other.RaceProps.Humanlike)
		{
			return false;
		}
		if (!RelationsUtility.PawnsKnowEachOther(p, other))
		{
			return false;
		}
		if (other.story.traits.DegreeOfTrait(TraitDefOf.Industriousness) > 0)
		{
			return false;
		}
		return true;
	}
}
